package com.xbongbong.lfasr.util;

import java.io.File;

public class FileUtil {
    public FileUtil() {
    }

    public static boolean isExist(String local_file) {
        if (StringUtil.isEmpty(local_file)) {
            return false;
        } else {
            File file = null;

            try {
                file = new File(local_file);
                boolean isExists = file.exists();
                return isExists;
            } catch (Exception var3) {
                return false;
            }
        }
    }

    public static boolean isEmpty(String local_file) {
        if (StringUtil.isEmpty(local_file)) {
            return true;
        } else {
            File file = null;

            try {
                file = new File(local_file);
                return !file.exists() || file.length() == 0L;
            } catch (Exception var3) {
                return true;
            }
        }
    }
}
